<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Model;

class TaskSubmit extends Model
{
    //
    protected $table = 'task_submit';


    public function task()
    {
    	return $this->belongsTo(Task::class,'task_id','id');
    }
    //获取任务提交要求
    public function get_submit_step($task_id)
    {
    	$data = $this->where('task_id',$task_id)->get();
    	if($data->isNotEmpty()){
    		return $data;
    	}else{
    		return false;
    	}
    }
}
